package com.scpii.universal.dto;

import java.util.HashSet;
import java.util.Set;

/**
 * universalWeb
 * 
 * @author liuhj 2012-7-18上午11:12:38
 */
public class CatelogNode extends CatelogDto {
	private Set<CatelogNode> children;

	public CatelogNode(Integer intCateId, String varCateName,
			Integer intParentCateId, String varCateImgUrl,
			Integer intHasSubCate, String varCateDescrip, Integer intType) {
		super(intCateId, varCateName, intParentCateId, varCateImgUrl, intHasSubCate,
				varCateDescrip,intType);
	}

	public Set<CatelogNode> getChildren() {
		return children;
	}

	public void setChildren(Set<CatelogNode> children) {
		this.children = children;
	}

	public void addChild(CatelogNode note) {
		if (this.getChildren() == null) {
			children = new HashSet<CatelogNode>();
		}
		children.add(note);
	}
}
